package com.hanxy.admin.model.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 系统用户列表响应体
 *
 * @author dingyoukun
 * @date 2021-08-27 16:18
 **/
@Data
@ApiModel(value = "SysUserListResp", description = "系统用户列表响应体")
public class SysUserListResp {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * account 账户
     */
    @ApiModelProperty(value = "账户")
    private String account;

    /**
     * jobNo 工号
     */
    @ApiModelProperty(value = "工号")
    private String jobNo;

    /**
     * name 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * mobile 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    /**
     * states 状态 1-在职 2-离职 3-禁用
     */
    @ApiModelProperty(value = "状态 1-在职 2-离职 3-禁用")
    private Integer states;

    /**
     * department 部门
     */
    @ApiModelProperty(value = "部门")
    private String department;

    /**
     * createTime 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色")
    private String roles;
}